package com.wu.common.utils;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RedisProperties {
    @Value("${spring.redis.host}")
    private String ip;
    @Value("${spring.redis.port}")
    private int port;
    @Value("${spring.redis.password}")
    private String password;
    @Value("${spring.redis.pool.maxTotal}")
    private int pool_maxTotal;
    @Value("${spring.redis.pool.maxIdle}")
    private int pool_maxIdle;
    @Value("${spring.redis.pool.maxWaitMilli}")
    private long pool_maxWaitMilli;
    @Value("${spring.redis.pool.testOnBorrow}")
    private boolean pool_testOnBorrow = true;
    @Value("${spring.redis.pool.testOnReturn}")
    private boolean pool_testOnReturn = true;
    @Value("${run.path.upload}")
    private String upLoadPath;

    public RedisProperties() {
    }

    public String getIp() {
        return this.ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public int getPort() {
        return this.port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getPassword() {
        return this.password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getPool_maxTotal() {
        return this.pool_maxTotal;
    }

    public void setPool_maxTotal(int pool_maxTotal) {
        this.pool_maxTotal = pool_maxTotal;
    }

    public int getPool_maxIdle() {
        return this.pool_maxIdle;
    }

    public void setPool_maxIdle(int pool_maxIdle) {
        this.pool_maxIdle = pool_maxIdle;
    }

    public long getPool_maxWaitMilli() {
        return this.pool_maxWaitMilli;
    }

    public void setPool_maxWaitMilli(long pool_maxWaitMilli) {
        this.pool_maxWaitMilli = pool_maxWaitMilli;
    }

    public boolean isPool_testOnBorrow() {
        return this.pool_testOnBorrow;
    }

    public void setPool_testOnBorrow(boolean pool_testOnBorrow) {
        this.pool_testOnBorrow = pool_testOnBorrow;
    }

    public boolean isPool_testOnReturn() {
        return this.pool_testOnReturn;
    }

    public void setPool_testOnReturn(boolean pool_testOnReturn) {
        this.pool_testOnReturn = pool_testOnReturn;
    }

    public String getUpLoadPath() {
        return this.upLoadPath;
    }
}

